<?php
/**
 * Template-Klasse zu Tooltip
 * 
 * @author		Joachim Ruf
 * @copyright	Copyright (c) 2003-2010 Loresoft Software (http://www.loresoft.de)
 * @license		http://yapary.loresoft.de/lizenzbedingungen     New BSD License
 * 
 * */


Class Yapary_Tooltip_TooltipTemplate1 Implements Yapary_Tooltip_ITooltipTemplate
{
    private $arrCss = array();
    function __construct(array $_arrCss = array())
    {
        $this->arrCss = $_arrCss;
    }

    public function get($content)
    {
		$css = '';

		if (count($this->arrCss) >= 1) {
			while (list($key, $val) = each($this->arrCss)) {
				$css .= $key.': '.$val.'; ';
			}
		}
        
        return '<div class="tooltipTemplate1" style="'.$css.'">'.$content.'</div>';
    }
}


?>